import request from "@/utils/request.js";
// 获取学科列表
export const subjectList = (params) => {
  return request({
    url: "/subject/list",
    method: "get",
    params,
  });
};

// 文档说企业添加接口，我觉得是学科添加
export const subjectAdd = (data) => {
  return request({
    url: "/subject/add",
    method: "post",
    data,
  });
};
// 学科删除
export const subjectRemove = (data) => {
  return request({
    url: "/subject/remove",
    method: "post",
    data,
  });
};
// 修改学科状态，启用或禁用账号
export const subjectStatus = (data) => {
  return request({
    url: "/subject/status",
    method: "post",
    data,
  });
};
// 学科编辑
export const subjectEdit = (data) => {
  return request({
    url: "/subject/edit",
    method: "post",
    data,
  });
};
